<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    
  <ui:composition template="template_ppal.xhtml">
      <ui:define name="title">Login</ui:define>

        <ui:define name="content">
          <h:form>
              <h2>ORINOCO</h2>
              <h4>login</h4>
              <table>
                  <tr>
                      <td>Usuario:         (email)</td>
                      <td>
                          <h:inputText label="Email Address"
                                       id="email" value="#{usuario.email}" required="true"
                                       validator="#{usuario.validarEmail}"/>
                          <h:message for="email" />
                      </td>
                  </tr>
                  <tr>
                      <td> PASSWORD: </td>
                      <td>
                          <h:inputSecret label="Password"
                                         id="password" value="#{usuario.password}"
                                         required="true" />
                          <h:message for="password"/>
                      </td>
                  </tr>
              </table>
            <p><h:commandButton value="Login" action="confirm" /></p>
          </h:form>
        </ui:define>
  </ui:composition>
</html>
